<template>
  <div class="introduction">
    <NavBar title="图文介绍"></NavBar>
    <Title :title="imgInfo.title"></Title>
    <div class="contentHtml" style="width:100%">
      <article v-html="imgInfo.content" style="width:100%"></article>
    </div>
  </div>
</template>

<script>
import NavBar from "@/components/NavBar.vue";
import Title from "@/components/Title.vue";
import { getDescById } from "@/apis/produce";
export default {
  data() {
    return {
      imgInfo: {},
    };
  },
  components: {
    NavBar,
    Title,
  },
  async created() {
    this.imgInfo = (await getDescById(this.$route.params.id)).data.message[0];
    console.log("this.imgInfo", this.imgInfo);
  },
};
</script>
<style lang="less" scoped>
.center {
  > span {
    width: 100% !important;
  }
}
.gomeImgLoad {
  width: 100% !important;
}
</style>
